package xyz.labmem.util

import com.alibaba.fastjson2.JSON
import com.alibaba.fastjson2.JSONObject
import org.yaml.snakeyaml.Yaml

object YamlUtil {

    fun getYaml(yml: String = "application.yml"): JSONObject =
        Yaml().loadAs(getResourceFile(yml).stream, JSONObject::class.java)

}